package com.rykj.qxj.server.services;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.rykj.qxj.server.dao.DataMartMapper;
import com.rykj.qxj.server.model.entity.DataMart;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IDataMartService {

    public void saveDataMart(DataMart dataMart) throws Exception;

    public void updateDataMart(DataMart dataMart) throws Exception;

    public void deleteDataMart(Integer dataMartId) throws Exception;

    public List<Map<String, Object>> getDataMartListTree(int parentId,String classLib,String martName) ;


    public PageInfo getDataMartList(Integer pageNum, Integer pageSize, String classLib, String martName);

    public Integer getCountApiTotal(String classLib, Integer catalogId);

    public Integer getThisMonthApiTotal(String classLib, Integer catalogId) ;

    public List<Map<String, Object>> getDataMartCount(Map<String, Object> paraMap);
    
    DataMart selectDataMart(Integer id);

    List<Map<String, Object>> getCatalogCountTopTen(Map<String, Object> paraMap);

    List<Map<String, Object>> getMartBasicCount();
}
